package com.zzx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzx.domain.Role;
import com.zzx.domain.Vo.AddRoleVo;
import com.zzx.util.ResponseResult;

/**
 * (Role)表服务接口
 *
 * @author makejava
 * @since 2022-08-01 17:54:34
 */
public interface RoleService extends IService<Role> {

    com.zzx.domain.Role getRole();

    ResponseResult RoleList();

    ResponseResult addRole(Role role);

    ResponseResult selectRoleById(Integer id);

    ResponseResult updateRoleById(Integer id, AddRoleVo addRoleVo);

    ResponseResult deleteRoleById(Integer id);

    ResponseResult setPermission(Integer roleId, String rids);

    ResponseResult deleteByPermission(Integer roleId, Integer rightId);
}

